import request from '@/utils/request'

// 查询通用图片存储列表
export function listImages(query) {
  return request({
    url: '/group_buy/images/list',
    method: 'get',
    params: query
  })
}

// 查询通用图片存储详细
export function getImages(imageId) {
  return request({
    url: '/group_buy/images/' + imageId,
    method: 'get'
  })
}

// 新增通用图片存储
export function addImages(data) {
  return request({
    url: '/group_buy/images',
    method: 'post',
    data: data
  })
}

// 修改通用图片存储
export function updateImages(data) {
  return request({
    url: '/group_buy/images',
    method: 'put',
    data: data
  })
}

// 删除通用图片存储
export function delImages(imageId) {
  return request({
    url: '/group_buy/images/' + imageId,
    method: 'delete'
  })
}
